package controller;

import java.io.IOException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.concurrent.Future;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import service.GetContent;

import com.google.appengine.api.urlfetch.URLFetchService;
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;

public class Test {
	private static ArrayList<Future> arFuture = new ArrayList<Future>();
	private static URLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();
	public static void main(String[] args) throws IOException {
		
		String str = Utils.GetHtml("http://www.alexa.com/siteinfo/http%253A//www.google.com", "utf-8");
		Document doc1 = Jsoup.parse(str);
		System.out.println(doc1.select("#category_link_table a"));
	}
}
